package com.cartoonrabbit.service;

import com.cartoonrabbit.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cartoonrabbit.vo.RespBean;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LiuTeng
 * @since 2023-01-08
 */
public interface IUserService extends IService<User> {
    /**
     * 获取用户信息
     */
    public User getUserInfoByOpenId(String openId);

    /**
     * 保存用户信息
     */
    public User saveUserInfo(User user);

    RespBean updateUsername(String nickname, String openId);

    /**
     * 用户头像修改
     * @param avatarFile
     * @param name
     * @return
     */
    RespBean updateAvatar(MultipartFile avatarFile, String name);

    RespBean productionChange(Integer times, String name);
}
